﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Bubbels.Controls
{
    /// <summary>
    /// Interaction logic for GameOverPane.xaml
    /// </summary>
    public partial class GameOverPane : UserControl
    {
        public GameOverPane()
        {
            InitializeComponent();
        }

        public event Action OnNewGame = delegate { };
        public event Action OnRestartGame = delegate { };
        public event Action OnExitGame = delegate { };
        private void btnNewGame_Click(object sender, RoutedEventArgs e)
        {
            OnNewGame();
        }

        private void RestartGame_Click(object sender, RoutedEventArgs e)
        {
            OnRestartGame();
        }

        private void ExitGame_Click(object sender, RoutedEventArgs e)
        {
            OnExitGame();
        }

        public void EnableRestart(bool enable)
        {
            if (enable)
            {
                this.RestartGame.IsEnabled = true;
                this.Resume.IsEnabled = true;
            }
            else
            {

                this.RestartGame.IsEnabled = false;
                this.Resume.IsEnabled = false;
            }
        }

        private void Resume_Click(object sender, RoutedEventArgs e)
        {

        }

       
    }
}
